package com.ygq;

import DTO.AddJudgeDTO;
import DTO.PageJudgeQuestionDTO;
import DTO.UpdateJudgeQuestionDTO;
import result.PageResult;

public interface JudgeQuestionService {

    /**
     * 分页查询
     * @return
     */
    PageResult page(PageJudgeQuestionDTO pageJudgeQuestionDTO);

    /**
     * 添加题目
     * @param addJudgeDTO
     */
    void addQuestion(AddJudgeDTO addJudgeDTO);

    /**
     * 根据id删除题目
     * @param id
     */
    Integer deleteQuestion(Integer id);

    /**
     * 修改题目
     * @param updateJudgeQuestionDTO
     */
    Integer updateJudge(UpdateJudgeQuestionDTO updateJudgeQuestionDTO);
}
